From 8f504f6763cca1459e3d6db1ddad40a18c6c5568 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 4 Aug 2010 07:44:23 +0000 Subject: [PATCH] * (bug 24656) API's parse module needs option to disable PP report --- RELEASE-NOTES | 1 + includes/api/ApiParse.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f6428c5265..23c39bced5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -315,6 +315,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 24485) Make iwbacklinks a generator, optionally display iwprefix and iwtitle * (bug 24564) Fix fatal errors when using list=deletedrevs, prop=revisions or one of the backlinks generators with limit=max. +* (bug 24656) API's parse module needs option to disable PP report === Languages updated in 1.17 === diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index d850690ccd..545c820138 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -73,7 +73,7 @@ class ApiParse extends ApiBase { $popts = new ParserOptions(); $popts->setTidy( true ); - $popts->enableLimitReport(); + $popts->enableLimitReport( !$params['disablepp'] ); $redirValues = null; if ( !is_null( $oldid ) || !is_null( $pageid ) || !is_null( $page ) ) { if ( !is_null( $oldid ) ) { @@ -401,6 +401,7 @@ class ApiParse extends ApiBase { 'onlypst' => false, 'uselang' => null, 'section' => null, + 'disablepp' => false, ); } @@ -441,6 +442,7 @@ class ApiParse extends ApiBase { ), 'uselang' => 'Which language to parse the request in', 'section' => 'Only retrieve the content of this section number', + 'disablepp' => 'Disable the PP Report from the parser output', ); } -- 2.20.1